package cn.com.open.opensaas.answerservice.enums;

/**
 * 接口返回结果
 */
public enum ResultType {

    Success("操作成功。",0),
    SAFETYFAIL("认证失败",-202),
    PARAMNULL("参数不完整",-201),
    PAPERNOTFOUND("试卷不存在",-214),
    CONTENTISNULL("试卷内容不存在",-214),
    Warning("警告",6),
    Error("操作引发错误。",7),
    ;

    String display;
    Integer prefix;

    ResultType(String display, Integer prefix) {
        this.display = display;
        this.prefix = prefix;
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    public Integer getPrefix() {
        return prefix;
    }

    public void setPrefix(Integer prefix) {
        this.prefix = prefix;
    }
}
